﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using System.Data.SqlClient;

namespace BLL
{
    public  class LocationBLL
    {
        public bool AddLoca(params SqlParameter[] parma)
        {
            Location loca = new Location();
            return new LocationDAL().Add(loca,parma);
        }
        public Location GetLocaById( SqlParameter[] param)
        {
            return new LocationDAL().GetList<Location>(param).FirstOrDefault();
        }
    }
}
